/**
 * @(#)ApkLoginTypeDAOImpl.java 2016年11月14日
 * Copyright(C) 2016 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;
import java.util.Map;

import org.jsbd.boss.dao.IApkLoginTypeDAO;
import org.jsbd.boss.domian.channel.ApkLoginTypeConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * apk登录方式
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class ApkLoginTypeDAOImpl extends CrackBaseDao implements IApkLoginTypeDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(ApkLoginTypeDAOImpl.class);

	@Override
	public List<ApkLoginTypeConfig> selectApkLoginTypeConfig(String mark) {
		return super.queryForList("qy_apk_login_config.GET_APK_LOGIN_TYPE_LIST", mark);
	}
	
	@Override
	public List<ApkLoginTypeConfig> selectApkLoginTypeConfig(ApkLoginTypeConfig config) {
		return super.queryForList("qy_apk_login_config.GET_APK_LOGIN_LIST", config);
	}
	
	@Override
	public List<ApkLoginTypeConfig> selectLoginTypeList(ApkLoginTypeConfig config) {
		return super.queryForList("qy_apk_login_config.GET_LOGIN_LIST", config);
	}
	
	@Override
	public void insertApkLoginTypeConfig(List<ApkLoginTypeConfig> apkConfigs){
		 super.batchInsert("qy_apk_login_config.INSERT_APK_LOGIN_TYPE", apkConfigs);
	}
	
	@Override
	public void insertAndUpdateApkLoginTypeConfig(List<ApkLoginTypeConfig> apkConfigs){
		 super.batchInsert("qy_apk_login_config.INSERT_UPDATE_APK_LOGIN_TYPE", apkConfigs);
	}

	@Override
	public void updateRateByMark(String mark) {
		super.update("qy_apk_login_config.UPDATE_RATE_BY_MARK", mark);
	}



	@Override
	public List<ApkLoginTypeConfig> selectLoginBaseList(ApkLoginTypeConfig config){
		return super.queryForList("qy_apk_login_config.SELECT_LOGIN_BASE_LIST", config);
	}

	@Override
	public void delteByMarkAndTypes(Map<String, Object> param) {
		super.delete("qy_apk_login_config.deleteByMarkAndType", param);
	}
	
}
